package neu.soft.feignclient;

import neu.soft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 服务降级处理，采用工厂方式，方便异常处理，优先级要高于统一异常处理
 */
@Component
@FeignClient(value = "user-server",fallbackFactory = UserFeignClientFallBackFactory.class)
public interface UserFeignClient {


    @RequestMapping("/order/change")
    ResultBean changeOrderStatus(@RequestBody Map<String, Object> map);

}
